<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC 	"-//W3C//DTD XHTML 1.0 Transitional//EN"
						"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	
						<html 	xmlns="http://www.w3.org/1999/xhtml"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:f="http://java.sun.com/jsf/core">
	<f:view locale="#{facesContext.externalContext.request.locale}">
	<f:loadBundle basename="texte.Info" var="vhtexte" />
	<f:loadBundle basename="texte.Fehler" var="fehlerdetail" />
	<f:event type="javax.faces.event.PreRenderComponentEvent" listener="#{TourneyMember.preInit}" />
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title><h:outputText value="#{vhtexte.userListTitel}"/></title>
	</h:head>
	<h:body>
	<h:outputStylesheet name="fonts.css"/>
	<p>
	<!-- Navigation -->
		<h:outputText value="Navigation" styleClass='headline' /><br />
		<b><h:outputLink value="tourneys.xhtml"><h:outputText value="[>> #{vhtexte.turniereTitel}"/></h:outputLink> | 
		<h:outputLink value="tourney_info.xhtml"><f:param name="tourneyID" value="#{TourneyInfo.tourneyInfo.ID}" /><h:outputText value="[>> #{vhtexte.tourneyInfoTitel}"/></h:outputLink> | 
		<h:outputText value="[>> #{vhtexte.playerList}"/>
		<h:outputText value=" | " rendered="#{TourneyInfo.tourneyInfo.gridAvailable}"/>
		<h:outputLink value="bracket.xhtml" rendered="#{TourneyInfo.tourneyInfo.gridAvailable}">
				<f:param name="tourneyID" value="#{TourneyInfo.tourneyInfo.ID}" />
				<h:outputText value="[>> #{vhtexte.bracket}"/>
			</h:outputLink> | 
		<h:outputLink value="login.xhtml"><f:param name="action" value="logout" /><h:outputText value="[>> #{vhtexte.logout}"/></h:outputLink>
		
		</b>
		<br /><br />
		
	 <b><h:outputText value="#{vhtexte.playerListTitel}" styleClass='headline'/><br />
	 <b><h:outputText value="#{vhtexte.playerListTourneyName}:" styleClass='legal'/> </b> <h:outputText value="#{TourneyInfo.tourneyInfo.name}" /></b><br />
	 <b><h:outputText value="#{vhtexte.regPlayers}:" styleClass='legal'/> </b> <h:outputText value="#{TourneyInfo.tourneyInfo.registeredPlayers}" /><br />
	 <b><h:outputText value="#{vhtexte.signedPlayers}:" styleClass='legal'/> </b> <h:outputText value="#{TourneyInfo.tourneyInfo.signedInPlayers}" />	
		<h:dataTable id="table" columnClasses="list-column-center,
			  list-column-right, list-column-center,
			list-column-right" headerClass="list-header"
			 rowClasses="list-row" styleClass="list-
			background"
			 value="#{TourneyMember.userlist}" var="userlist">  
			
			  <h:column>
				<f:facet name="header">
					<h:outputText  value="#{vhtexte.userListUsername}" styleClass='subhead'/>
				</f:facet>
					<h:outputText value="#{userlist.username}"/>
			  </h:column>
			  <h:column>
				<f:facet name="header">
				  <h:outputText  value="Player ID" styleClass='subhead' rendered="#{TourneyMember.admin}"/>
				</f:facet>
				 <h:outputText value="#{userlist.ID}" rendered="#{TourneyMember.admin}"/>
			  </h:column>
			  <h:column>
				<f:facet name="header">
				  <h:outputText  value="Name" styleClass='subhead'/>
				</f:facet>
				 <h:outputText value="#{userlist.name}"/>
			  </h:column>
			  <h:column>
				<f:facet name="header">
				  <h:outputText  value="E-Mail" styleClass='subhead'/>
				</f:facet>
				 <h:outputText value="#{userlist.email}"/>
			  </h:column>
			  <h:column>
				<f:facet name="header">
				  <h:outputText  value="#{vhtexte.signedIn}" styleClass='subhead'/>
				</f:facet>
				 <h:outputText value="#{userlist.signedIn ? vhtexte.yes : vhtexte.no}" style="color: #{userlist.signedIn ? 'green' : 'red'}"/>
			  </h:column>
		</h:dataTable> 
		</p>
	</h:body>
	</f:view>
</html>
